import Vue from 'vue'
import App from './App.vue'
//导入mui的样式包
import './lib/css/mui.css'
//导入mui的拓展图标样式
import './lib/css/icons-extra.css'
//导入 vue-router 路由对象
import VueRouter from 'vue-router'
Vue.use(VueRouter);
//导入路由处理模块
import router from './router'
//导入mint-UI
import MintUI from 'mint-ui'
import 'mint-ui/lib/style.css'
Vue.use(MintUI);
//导入axios
import axios from 'axios'
axios.defaults.baseURL="http://www.barteam.cn:8086"
Vue.prototype.$http = axios;
//导入moment.js
import moment from 'moment'
//导入vue-preview插件
import VuePreview from 'vue-preview'
//注册到vue上
Vue.use(VuePreview);

//导入Vuex仓储模块
import store from './store.js'



Vue.filter('dateFormat',function(dateStr,pattern='YYYY-MM-DD'){
  return moment(dateStr).format(pattern)
})

new Vue({
  el:'#app',
  render: h => h(App),
  router,
  store
})
